﻿package Message.Public
{
    import Framework.MQ.*;
    import Framework.Serialize.*;
    import flash.utils.*;

    public class SGuildMercenarys extends IMessageBase
    {
        public var guild:int;
        public var myMoney:int;
        public var guildMercenary:Dictionary;
        public const _type:int = 5124;
        public static var _regist:SGuildMercenarys = new SGuildMercenarys(true);

        public function SGuildMercenarys(param1:Boolean = false)
        {
            if (param1)
            {
                MessageManager.instance().regist(this);
            }
            return;
        }// end function

        override public function getType() : int
        {
            return this._type;
        }// end function

        override public function clone() : IMessageBase
        {
            return new SGuildMercenarys();
        }// end function

        override public function __write(param1:SerializeStream) : void
        {
            param1.writeInt(this.guild);
            param1.writeInt(this.myMoney);
            DictGuildMercenaryHelper.write(param1, this.guildMercenary);
            return;
        }// end function

        override public function __read(param1:SerializeStream) : void
        {
            this.guild = param1.readInt();
            this.myMoney = param1.readInt();
            this.guildMercenary = DictGuildMercenaryHelper.read(param1);
            return;
        }// end function

    }
}
